﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InsertDirectMeterial.aspx.cs" Inherits="Hisun.View.Meterial.InsertDirectMeterial" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        .style1
        {
        }
        .style2
        {
            width: 178px;
        }
        .style3
        {
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
      <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">新增</div></div>
    <div class ="CommonPage_Body">

    
        <table >
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="作业中心" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_CenterName" runat="server" Width="157px" 
                        SkinID="TextBox"></asp:TextBox>
                    <asp:Label ID="Label2" runat="server" Text="作业中心产品(中间体)" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_PIPName" runat="server" Width="209px" SkinID="TextBox"></asp:TextBox>
                    <br />
                </td>
            </tr>
            <tr>
                <td>
                    <table style="width:100%;">
                        <tr>
                            <td class="style1">
                                <asp:Label ID="Label3" runat="server" Text="材料ID" SkinID="Label"></asp:Label>
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="TextBox_MeterialId" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:Button SkinID = "Button" ID="Button_SelectMeterialId" runat="server" Text="..." Width="18px" 
                                    onclick="Button_SelectMeterialId_Click" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator_MeterialID" runat="server" 
                                    ErrorMessage="*" ControlToValidate="TextBox_MeterialId" 
                                    ValidationGroup="Group"></asp:RequiredFieldValidator>
                            </td>
                            <td class="style3">
                                <asp:Label ID="Label4" runat="server" Text="材料名称" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_MeterialName" runat="server" ReadOnly="True" SkinID="TextBox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                <asp:Label ID="Label5" runat="server" Text="计量单位" SkinID="Label"></asp:Label>
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="TextBox_Unit" runat="server" ReadOnly="True" SkinID="TextBox"></asp:TextBox>
                            </td>
                            <td class="style3">
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style1">
                                <asp:Label ID="Label13" runat="server" Text="期初数量" SkinID="Label"></asp:Label>
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="TextBox_QiChuShuLiang" runat="server"  SkinID="TextBox" 
                                    Enabled="False"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator_QiChuShuLiang" runat="server" 
                                    ControlToValidate="TextBox_QiChuShuLiang" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                            <td class="style3">
                                <asp:Label ID="Label14" runat="server" Text="期初金额" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_QiChuJinE" runat="server" SkinID="TextBox" 
                                    Enabled="False"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator_QiChuJinE" runat="server" 
                                    ControlToValidate="TextBox_QiChuJinE" ErrorMessage="*" Operator="DataTypeCheck" 
                                    Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                <asp:Label ID="Label7" runat="server" Text="领用数量" SkinID="Label"></asp:Label>
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="TextBox_LingYongShuLiang" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator_LingYongShuLiang" runat="server" 
                                    ControlToValidate="TextBox_LingYongShuLiang" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                            <td class="style3">
                                <asp:Label ID="Label8" runat="server" Text="领用金额" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_LingYongJinE" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator_LingYongJinE" runat="server" 
                                    ControlToValidate="TextBox_LingYongJinE" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                <asp:Label ID="Label9" runat="server" Text="本期数量" SkinID="Label"></asp:Label>
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="TextBox_BenQiHaoYong" runat="server" ReadOnly="True" 
                                    Enabled="False"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidatorx_BenQiHaoYong" runat="server" 
                                    ControlToValidate="TextBox_BenQiHaoYong" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
                            </td>
                            <td class="style3">
                                <asp:Label ID="Label10" runat="server" Text="本期金额" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_HaoYongJinE" runat="server" ReadOnly="True" 
                                    Enabled="False" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator_HaoYongJinE" runat="server" 
                                    ControlToValidate="TextBox_HaoYongJinE" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                <asp:Label ID="Label11" runat="server" Text="期末数量" SkinID="Label"></asp:Label>
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="TextBox_QiMoShuLiang" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator_QiMoShuLiang" runat="server" 
                                    ControlToValidate="TextBox_QiMoShuLiang" ErrorMessage="*" 
                                    Operator="DataTypeCheck" Type="Double" ValidationGroup="Group"></asp:CompareValidator>
                            </td>
                            <td class="style3">
                                <asp:Label ID="Label12" runat="server" Text="期末金额" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_QiMoJinE" runat="server" Enabled="False" SkinID="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator_QiMoJinE" runat="server" 
                                    ControlToValidate="TextBox_QiMoJinE" ErrorMessage="*" Operator="DataTypeCheck" 
                                    Type="Double" Visible="False"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                <asp:Button SkinID = "Button" ID="Button_Save" runat="server" onclick="Button_Save_Click" 
                                    Text="保存" ValidationGroup="Group" />
                                <asp:Button SkinID = "Button" ID="Button_Cancel" runat="server" onclick="Button_Cancel_Click" 
                                    Text="取消" />
                            </td>
                            <td class="style2">
                                &nbsp;</td>
                            <td class="style3" colspan="2">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style1" colspan="4">
                                <asp:HiddenField ID="MyMeterialInfo" runat="server" Value="0" />
                                <asp:HiddenField ID="HF_CenterId" runat="server" Value="0" />
                                <asp:HiddenField ID="HF_PIPId" runat="server" Value="0" />
                                <br />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    
    </div></div>
    </form>
</body>
</html>
